package com.bto.solar.work.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.sql.Timestamp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 公司表
 * </p>
 *
 * @author adrian
 * @since 2023-08-28
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "Company对象", description = "公司表")
public class Company implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("公司ID")
    @TableId(value = "company_id", type = IdType.AUTO)
    private Long companyId;

    @ApiModelProperty("类型：	总部: ZBGS	分公司，FBGS	代理商、DLS	整县，ZX	项目部 XMB")
    private String type;

    @ApiModelProperty("公司名称")
    private String name;

    @ApiModelProperty("省份ID")
    private Long provinceCode;

    @ApiModelProperty("城市ID")
    private Long cityCode;

    @ApiModelProperty("区/县ID")
    private Long districtCode;

    @ApiModelProperty("详细地址")
    private String address;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;

    @ApiModelProperty("是否删除（0：存在，1：删除）")
    private Byte isDeleted;
}
